import { createApp } from 'vue'
import { createPinia } from 'pinia';
import App from './App.vue';
import router from './routers';
import ElementPlus from 'element-plus';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import dialogBoard from './components/dialog.vue'
import flashCoolText from './components/mapText.vue'
import AIThinking from './components/AIThinking.vue';

const Pinia=createPinia();
const app =createApp(App);
app.use(ElementPlus);
app.component('dialogBoard',dialogBoard);
app.component('flashCoolText',flashCoolText);
app.component('AIThinking',AIThinking);
app.use(router);
app.use(Pinia);


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')
